package com.ycy.smartcourseselection.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class PageResVO<T> {
    @ApiModelProperty("当前页码")
    private long pageNum;

    @ApiModelProperty("每页条数")
    private long pageSize;

    @ApiModelProperty("当前页数据")
    private List<T> rows;

    @ApiModelProperty("总页数")
    private long totalPages;

    @ApiModelProperty("总条数")
    private long totalSize;

    public PageResVO(long pageNum, long pageSize, List<T> rows, long totalPages, long totalSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.rows = rows;
        this.totalPages = totalPages;
        this.totalSize = totalSize;
    }

    public PageResVO() {}
}
